<template>
	<view class="AppH5login">
		<view class="h5login">

			<view class="login_image">
			</view>
			<view class="login_button">
				<u-button class="u-button" shape="circle" type="primary" text="手机号登录" @click="GoPhoneLogin()">
				</u-button>
				<u-button class="u-button" shape="circle" type="primary" text="密码登录" @click="GoPhonePassword()">
				</u-button>
				<!-- <u-button shape="circle" icon="weixin-fill" type="success" text="微信一键登陆" @click="AppLoginGo()">
				</u-button> -->
				<view class="uni-btn-v">
					<button type="primary" @click="goregister()">注册</button>
				</view>
			</view>
		</view>
		<view class="img1"></view>
		<view class="img2"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			GoPhonePassword() {
				uni.navigateTo({
					url: '/pages/AppH5password/AppH5password'
				})
			},
			GoPhoneLogin() {
				uni.navigateTo({
					url: '/pages/AppH5login/AppH5login'
				})
			},
			goregister() {
				uni.navigateTo({
					url: '/pages/register/register'
				})
			},
			// AppLoginGo() {
			// 	var that = this;
			// 	uni.getProvider({
			// 		service: 'oauth',
			// 		success: (res) => {
			// 			console.log(res);
			// 			if (~res.provider.indexOf('weixin')) {
			// 				uni.login({
			// 					provider: "weixin",
			// 					success: (loginRes) => {
			// 						console.log("App微信获取用户信息成功", loginRes);
			// 						uni.getUserInfo({
			// 							provider: 'weixin',
			// 							success: function(infoRes) {
			// 								console.log('-------获取微信用户所有-----');
			// 								console.log(infoRes.userInfo.openId);
			// 								console.log(JSON.stringify(infoRes
			// 									.userInfo));
			// 								// 提交信息
			// 								// that.wxSubmit(infoRes.userInfo.openId)

			// 							}
			// 						});
			// 					}
			// 				})
			// 			}
			// 		},
			// 		fail: (res) => {
			// 			console.log('APP微信获取用户信息失败', res)
			// 		}
			// 	})
			// },
		}
	}
</script>

<style>
	@import './AppLogin.css';
</style>
